#ifndef SYNC_COUNTER_FIFO_H
#define SYNC_COUNTER_FIFO_H

#include <linux/kfifo.h>
#include <linux/timekeeping.h>
#include <linux/kernel.h>

int new_kfifo(size_t size, const char *name, struct kfifo **fifo);

// sync counter frame in kfifo
struct __packed sync_counter_frame {
    ktime_t time_ns;
    uint64_t count;
};

#define TRIGGER_COUNT U64_MAX

#endif
